package com.mzm.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity(name = "ProductImageInfo")
@Table(name = "PRODUCT_IMAGE_INFO")
public class ProductImageInfo extends BaseEntity {

	@Column(name = "IMAGE_URL")
	private String imageUrl;

	@ManyToOne
	@JoinColumn(name = "PRODUCT_ID")
	private ProductInfo productInfo;

	public ProductImageInfo() {
	}

	public ProductImageInfo(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getImageUrl() {
		return imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public ProductInfo getProductInfo() {
		return productInfo;
	}

	public void setProductInfo(ProductInfo productInfo) {
		this.productInfo = productInfo;
	}

}
